package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 工作票安全措施1明细表
 * @TableName worksheet_safety_measures1
 */
@TableName(value ="worksheet_safety_measures1")
@Data
public class WorksheetSafetyMeasures1 implements Serializable {
    /**
     * ID
     */
    @TableId
    private String wsId;

    /**
     * 工作票编号
     */
    private String wsCode;

    /**
     * 序号
     */
    private Integer wsOrder;

    /**
     * 必须采取的安全措施
     */
    private String safetyMeasures;

    /**
     * 安全措施执行情况0-未执行 1-已执行
     */
    private String safetyResult;
    /**
     * 用户ID
     */
    private String userid;
    /**
     * 用户
     */
    private String user;
    /**
     * 工作内容
     */
    private String context;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorksheetSafetyMeasures1 other = (WorksheetSafetyMeasures1) that;
        return (this.getWsId() == null ? other.getWsId() == null : this.getWsId().equals(other.getWsId()))
            && (this.getWsCode() == null ? other.getWsCode() == null : this.getWsCode().equals(other.getWsCode()))
            && (this.getWsOrder() == null ? other.getWsOrder() == null : this.getWsOrder().equals(other.getWsOrder()))
            && (this.getSafetyMeasures() == null ? other.getSafetyMeasures() == null : this.getSafetyMeasures().equals(other.getSafetyMeasures()))
            && (this.getSafetyResult() == null ? other.getSafetyResult() == null : this.getSafetyResult().equals(other.getSafetyResult()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getWsId() == null) ? 0 : getWsId().hashCode());
        result = prime * result + ((getWsCode() == null) ? 0 : getWsCode().hashCode());
        result = prime * result + ((getWsOrder() == null) ? 0 : getWsOrder().hashCode());
        result = prime * result + ((getSafetyMeasures() == null) ? 0 : getSafetyMeasures().hashCode());
        result = prime * result + ((getSafetyResult() == null) ? 0 : getSafetyResult().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", wsId=").append(wsId);
        sb.append(", wsCode=").append(wsCode);
        sb.append(", wsOrder=").append(wsOrder);
        sb.append(", safetyMeasures=").append(safetyMeasures);
        sb.append(", safetyResult=").append(safetyResult);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}